class Cat:
    def __init__(self,name):
        self.name = 'cat'
        @classmethod
        def speak(cls):
            print('shout~~~~~~')
        def miao(self):
            print('miao~~~~~~')

            cat = Cat('xiaobai')
            print(cat.name)
            cat.miao()


#实例属性不能用类调用
            Cat.miao()
            Cat.speak()